#ifndef FPLAYER_COMMONDEFINE_H
#define FPLAYER_COMMONDEFINE_H

#include "IBasic.h"
#include "LogUtil.h"
#include "utils/OSUtil.h"
#include "utils/TimeUtil.h"
#include "utils/StringUtil.h"

#include <stdio.h>

//计算数组的长度
#define ARRAY_LEN(array) (sizeof(array)/sizeof(array[0]))

#define DELETE_PTR(ptr) if (ptr) { \
  delete ptr;                      \
  ptr = nullptr;                   \
}

#define LENGTH_16   16
#define LENGTH_32   32
#define LENGTH_128  128

#define INVALID_ID -1

#define SUCCESS 0
#define FAILURE -1

#define Bool2Str(b) String_Bool2String(b)

#endif //FPLAYER_COMMONDEFINE_H
